package com.china08.yxyapi.service.mg;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.china08.yxyapi.api.manage.tec.teaching.scoreport.compareexam.CompareExamController;
import com.china08.yxyapi.api.manage.tec.teaching.scoreport.createexam.ImportExamController.ExcelBackData;
import com.china08.yxyapi.api.manage.tec.teaching.scoreport.selectexam.SelectExamController;
import com.china08.yxyapi.entity.mg.scoreport.Exam;

public interface ExamService {

    public Page<SelectExamController.RespModel> getExamPage(String userId, String schoolId, String name, Integer status,
            String classId, Integer startDate, Integer endDate, Pageable pageable)
                    throws NumberFormatException, ParseException;

    public void downloadExamExcel(HttpServletRequest request, HttpServletResponse response, List<Exam> examLst)
            throws IOException;

    public ExcelBackData parsingExcel(Workbook wb, ExcelBackData backData, String uploadUserId);

    public CompareExamController.RespModel compareExam(List<String> idLst, String id);

}
